html,
body {
    margin: 0;
    font-family: "PingFang SC", "Microsoft Yahei", sans-serif;
}

.container {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("../../static/images/plant/background.jpeg") fixed no-repeat;//需修改
    background-size: cover;

}

.register {
    width: 240px;
    height: 300px;
    display: flex;
    flex-direction: column;
    padding: 40px;
    text-align: center;
    position: relative;
    z-index: 100;
    background: inherit;
    border-radius: 18px;
    overflow: hidden; /* 隐藏多余的模糊效果 */
}

.register::before {
    content: "";
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    position: absolute;
    top: -10px;
    left: -10px;
    overflow: hidden;
    background: inherit;
    box-shadow: inset 0 0 0 200px rgba(255, 255, 255, 0.25);
    filter: blur(6px);
    z-index: -1;
}

.register h2 {
    font-size: 18px;
    font-weight: 400;
    color: #3d5245;
}


.register input,
.register button {
    margin: 6px 0;
    height: 36px;
    border: none;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 0 14px;
    color: #3d5245;
}

.register input::placeholder {
    color: #3d5245;
}

/* 补充，取消选中高亮蓝框 */
.register button:focus,
.register input:focus {
    outline: 0;
}

.register button {
    margin-top: 24px;
    background-color: rgba(57, 88, 69, 0.4);
    color: white;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: 0.4s;
}

.register button:hover {
    background-color: rgba(12, 80, 38, 0.67);
}

.register button:focus {
    outline: 0;
}

.register button::before,
.register button::after {
    content: "";
    display: block;
    width: 80px;
    height: 100%;
    background: rgba(179, 255, 210, 0.5);
    opacity: 0.5;
    position: absolute;
    top: 0;
    left: 0;
    transform: skewX(-15deg);
    filter: blur(30px);
    overflow: hidden;
    transform: translateX(-100px);
}

.register button::after {
    width: 40px;
    background: rgba(179, 255, 210, 0.3);
    left: 60px;
    opacity: 0;
    filter: blur(5px);
}

.register button:hover::before {
    transition: 1s;
    transform: translateX(320px);
    opacity: 0.7;
}

.register button:hover::after {
    transition: 1s;
    transform: translateX(320px);
    opacity: 1;
}
